@extends('admin.common.list')
@section('content')


<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 文章管理 <span class="c-gray en">&gt;</span> 分类列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
		
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="cl pd-5 bg-1 bk-gray mt-20"> 
				<a class="btn btn-primary radius" href="javascript:;" onclick="addHtml('添加管理员','{{url('admin/admin/create')}}','800','800')"><i class="Hui-iconfont"></i> 添加管理员</a>

				<span class="r">共有数据：<strong>{{$count}}</strong> 条</span> </div>
			<div class="mt-10">
				<table class="table table-border table-bordered table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="70">ID</th>
							<th width="70">账号名</th>
							<th width="70">是否禁用</th>
							<th width="70">创建时间</th>
							<th width="70">修改时间</th>
							<th width="100">操作</th>
						</tr>
					</thead>
					<tbody>
						@foreach($adminList as $k => $v)
						<tr class="text-c">
							<td>{{$v['id']}}</td>
							<td>{{$v['account']}}</td>
							<td>{{$v->isEnable()}}</td>
							<td>{{$v['create_at']}}</td>
							<td>{{$v['update_at']}}</td>
							<td class="f-14 product-brand-manage">
								<a style="text-decoration:none" onClick="addHtml('编辑管理员','{{url('admin/admin',[$v['id'],'edit'])}}','800','800')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> 
								<a style="text-decoration:none" class="ml-5" onClick="delData('{{url('admin/admin',[$v['id']])}}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
						@endforeach
					</tbody>
				</table>
				{{$adminList->render() }}
			</div>
		</article>
	</div>
</section>


@endsection